package cn.tedu.pet.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class AttributeTemplateUpdateInfoParam implements Serializable {
    @NotNull(message = "必须提交属性模板名称！")
    @ApiModelProperty(value = "属性模板名称",required = true)
    private String name;

    @NotNull(message = "必须提交属性模板名称拼音！")
    @ApiModelProperty(value = "属性模板名称的拼音",required = true)
    private String pinyin;

    @NotNull(message = "必须提交关键词列表！")
    @ApiModelProperty(value = "关键词列表",required = true)
    private String keywords;

    @NotNull(message = "必须提交排序序号！")
    @Range(max = 99,message = "排序序号值必须0-99之间")
    @ApiModelProperty(value = "排序序号",required = true)
    private Integer sort;
}
